package com.lxz.bookmanager.service.impl;

import com.lxz.bookmanager.entity.Record;
import com.lxz.bookmanager.mapper.RecordMapper;
import com.lxz.bookmanager.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordMapper recordMapper;

    @Override
    public List<Record> getAllRecord() {
        return recordMapper.getAllRecord();
    }

    @Override
    public List<Record> getOwnRecord(String readerId) {
        return recordMapper.getOwnRecord(readerId);
    }
}
